import * as ActionTypes from './ActionTypes.js';



export const addTodo = (text, place, time) =>{
    return {
        type: ActionTypes.ADD_TODO,
        text: text,
        place: place,
        time: time
    }
};

export const deleteTodo = () =>{
    return {
        type: ActionTypes.DELETE_TODO,
    }
};

export const modTodo = (text , place , time) =>{
    return {
        type: ActionTypes.MOD_TODO,
        text: text,
        place:place,
        time:time
    }
};

export const completeTodo = () =>{
    return {
        type: ActionTypes.COMPLETE_TODO
    }
};

export const activeTodo = (index) =>{
    return {
        type: ActionTypes.ACTIVE_TODO,
        index:index
    }
};